import request from '@/utils/request'

/**
 * 生成支付二维码-pos机
 */
export function paymentPos(params) {
  return request.post('/payment/qrCode', params)
}
/**
 * 生成退款二维码-pos机
 * @param {*} params 
 */
export function paymentRefundQrCode(params) {
  return request.post('/payment/refundQrCode', params)
}


//挂账出门
export function paymentOnAccount(orderId, orderType, code) {
  return request.get(`/order/onAccount/${orderId}/${orderType}/${code}`)
}


//结算单订单金额为零，确认支付
export function confirmPay(orderId, orderType, code) {
  return request.get(`/order/confirmPay/${orderId}/${orderType}/${code}`)
}
